import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

export default {
  install: (app, cfg) => {
    app.use(ElementPlus)
    
    // 注册全部el-icon图标
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      // console.log(`key 👉`,key)
      // console.log(`component 👉`,component)
      app.component(key, component)
    }
  }
}
